package chixing.day11.homework.work10;

public class FullReductionStrategy implements PricingStrategy {

    private double threshold;//满多少元可减
    private double reduction;//可减少多少元

    public FullReductionStrategy() {
    }

    public FullReductionStrategy(double threshold, double reduction) {
        this.threshold = threshold;
        this.reduction = reduction;
    }

    @Override
    public double calculate(Product product) {

        return 0;
    }

    public double getThreshold() {
        return threshold;
    }

    public void setThreshold(double threshold) {
        this.threshold = threshold;
    }

    public double getReduction() {
        return reduction;
    }

    public void setReduction(double reduction) {
        this.reduction = reduction;
    }

    @Override
    public String toString() {
        return "FullReductionStrategy{" +
                "threshold=" + threshold +
                ", reduction=" + reduction +
                '}';
    }
}
